import { Component, OnInit, ViewChild} from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent implements OnInit {
  public newName = '李强';
  // @ViewChild( 'componentname' ) componentname;
  constructor() { }

  ngOnInit() {
  }
  // getData(msg) {
  //   console.log(msg);
  // }
  query() {
    // console.log(this.componentname.info);
  }

}
